import Vue from 'vue'

const state = {
  columnTypeMap: {}
}
const getters = {
  getColumnTypeMap: state => state.columnTypeMap
}
const mutations = {
  setColumnType: (state, {key, value}) => {
    Vue.set(state.columnTypeMap, key, value)
  }
}
const actions = {
  setColumnType: (context, {key, value}) => {
    context.commit('setColumnType', {key, value})
  }
}
export default {
  namespaced: true,
  state,
  actions,
  mutations,
  getters
}
